import http from './public'

// 注册
export const regist = (params) => {
  return http.fetchPost(`${http.baseUrl}/user/add`, params)
}
// 登录
export const login = (params) => {
  return http.fetchPost(`${http.baseUrl}/user/login`, params)
}
// 用户列表
export const userList = (params) => {
  return http.fetchPost(`${http.baseUrl}/user/list`, params)
}
// 新增邮件
export const mailAdd = (params) => {
  return http.fetchPost(`${http.baseUrl}/mail/add`, params)
}
// 修改邮件属性
export const mailEdi = (params) => {
  return http.fetchPost(`${http.baseUrl}/mail/edi`, params)
}
// 邮件列表查询
export const mailList = (params) => {
  return http.fetchPost(`${http.baseUrl}/mail/list`, params)
}
// 邮件列表查询
export const mailDet = (params) => {
  return http.fetchPost(`${http.baseUrl}/mail/detail`, params)
}
// 发送邮件
export const toMail = (params) => {
  return http.fetchPost(`${http.baseUrl}/mail/toMail`, params)
}
// 忘记密码
export const pwdEdi = (params) => {
  return http.fetchPost(`${http.baseUrl}/user/pwd/edi`, params)
}
// 文件上传
export const userUpload = (params) => {
  return http.uploadPost(`${http.baseUrl}/user/upload`, params)
}